[Core] Deflake test_put_out_of_disk#56442
Conversation
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
|
|
||
| assert get_current_usage() < local_fs_capacity_threshold | ||
| time.sleep(1) | ||
| wait_for_condition(lambda: get_current_usage() < local_fs_capacity_threshold) |
There was a problem hiding this comment.
On the CI machine, the get_current_usage() is not immediately updated after the tmp_file is deleted for some reason so I'm using wait_for_condition() here to give it some time to update it.
There was a problem hiding this comment.
Can you leave a comment on get_current_usage that it could be potentially flaky due to file size not being immediately updated + should be used with wait_for_condition?
|
|
||
| assert get_current_usage() < local_fs_capacity_threshold | ||
| time.sleep(1) | ||
| wait_for_condition(lambda: get_current_usage() < local_fs_capacity_threshold) |
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
Why are these changes needed?
Related issue number
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/under thecorresponding
.rstfile.